package com.mlz.mlzmall.ui.model;

import com.mlz.mlzmall.ui.utils.DataUtils;

/**
 * Created by yhf on 2016/5/24.
 */
public class EditAddress {

    /**
     * status : 0
     * errors : [{}]
     * msg : string
     * data : {"fullname":"string","shippingTelephone":"string","regionCode":0,"address":"string","postcode":"string","defaultAddress":true,"addressId":0}
     */

    private int status;
    private String msg;
    /**
     * fullname : string
     * shippingTelephone : string
     * regionCode : 0
     * address : string
     * postcode : string
     * defaultAddress : true
     * addressId : 0
     */

    private DataBean data;

    public int getStatus() {
        return DataUtils.getInt(status);
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return DataUtils.getString(msg);
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String fullname;
        private String shippingTelephone;
        private int regionCode;
        private String address;
        private String postcode;
        private boolean defaultAddress;
        private int addressId;

        public String getFullname() {
            return DataUtils.getString(fullname);
        }

        public void setFullname(String fullname) {
            this.fullname = fullname;
        }

        public String getShippingTelephone() {
            return DataUtils.getString(shippingTelephone);
        }

        public void setShippingTelephone(String shippingTelephone) {
            this.shippingTelephone = shippingTelephone;
        }

        public int getRegionCode() {
            return DataUtils.getInt(regionCode);
        }

        public void setRegionCode(int regionCode) {
            this.regionCode = regionCode;
        }

        public String getAddress() {
            return DataUtils.getString(address);
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getPostcode() {
            return DataUtils.getString(postcode);
        }

        public void setPostcode(String postcode) {
            this.postcode = postcode;
        }

        public boolean isDefaultAddress() {
            return defaultAddress;
        }

        public void setDefaultAddress(boolean defaultAddress) {
            this.defaultAddress = defaultAddress;
        }

        public int getAddressId() {
            return DataUtils.getInt(addressId);
        }

        public void setAddressId(int addressId) {
            this.addressId = addressId;
        }
    }
}
